﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UCenter.Core.Service;
using System.Runtime.Serialization;

namespace UCenter.BusinessContract
{
    [DataContract]
    public class MessageContract : BusinessBase
    {
        [DataMember]
        public int ID { get; set; }
        [DataMember]
        public AccountContract ToUser { get; set; }
        [DataMember]
        public AccountContract FromUser { get; set; }
        [DataMember]
        public DateTime SentDate { get; set; }
        [DataMember]
        public String Content { get; set; }
        [DataMember]
        public String Subject { get; set; }
        [DataMember]
        public bool IsDeleted { get; set; }
        [DataMember]
        public bool IsNew { get; set; }
        [DataMember]
        public byte Type { get; set; }
    }
}
